package com.wisewin.pose.dao;

import com.wisewin.pose.entity.db.OrgUserPhysicalRecordDO;
import com.wisewin.pose.entity.db.UserPhysicalRecordDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserPhysicalRecordDAO {

    public int insert(@Param("obj") UserPhysicalRecordDO obj);

    public UserPhysicalRecordDO queryByRecordId(@Param("recordId") Integer recordId);

    public List<UserPhysicalRecordDO> queryRecordsByUsrId(Map<String, Object> map);

    public List<OrgUserPhysicalRecordDO> queryRecordsByUsrIdAndOrgId(Map<String, Object> map);

    public List<OrgUserPhysicalRecordDO> wildcardSearchRecords(Map<String, Object> map);

    public void updateIsCreate(UserPhysicalRecordDO userPhysicalRecordDO);

    public int countwildcardSearchUserRecords(Map<String, Object> map);

    public int countUserRecords(@Param("userId") int userId);

    public int countOrgUserRecords(@Param("orgId") int orgId);

    void update(UserPhysicalRecordDO userPhysicalRecord);

    void delete(@Param("recordId") int recordId);

}
